{template admin_improt}
<style>
.tables{width:100px; background:#666666;}
</style>
<script>
function del(id){
	if(confirm("操作不可恢复，若是一级类别连同二级类别一同删除 确认删除所有选中数据么？")){
	window.location="admin.php?p=footer&a=footerdel&id="+id;
	}//

}


function ups(id)
{

	
	$.post('admin.php?p=footer&a=up_is_ok&id='+id,{id:id},function (data) {
	
	
	if(data==1)
	{
		document.getElementById('is_oks_'+id).innerHTML='<span style="color:green;">有效显示</span>';
	}
	else
	{
		document.getElementById('is_oks_'+id).innerHTML='<span style="color:red;">无效不显示</span>';
	}


	
	
	
	});

}

</script>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
	  		底部管理
		</span>
	</div>
	<div class="mainSearch">
		<span class="mainTitle_btn"><a href="?p=footer&a=footer_insert"><img src="style/images/btn1.gif" border="0";></a></span>
	</div>
	<div class="mainTitle_list">
		<span class='mainTitle_text1'>名称</span>
		<span class='mainTitle_text1'>链接</span>
		<span class='mainTitle_text_7'>级别（1级与2级）</span>
		<span class='mainTitle_text_6'>是否显示</span>
		<span class='mainTitle_text6'>操作</span>
	</div>
	<form id="f_form" name="f_form" action="" method="post">
	<!--{if $list}-->
		<!--{loop $list $nl}-->
		<div class="mainList">
			<span class='mainList_text1'><!--{$nl["name"]}--></span>
			<span class='mainList_text1'>{if $nl['url']==''}一级类可无连接{else}$nl['url']{/if}</span>
			<span class='mainList_text77'>{if $nl['parent_id']==0}一级{else}二级{/if}</span>
			<span class='mainList_text66'>
			
			
			
			<a id="is_oks_{$nl['id']}" href='javascript:;' onclick="ups({$nl['id']})">{if $nl["is_ok"] == 1}<span style="color:green;">有效显示</span>{else}<span style="color:red;">无效不显示</span>{/if}</a>
			
			</span>
			<span class='mainList_text6'>
				<span class="mainList_text8"><a href="javascript:del({$nl['id']}) ">删除</a></span></span>
			</span>
		</div>
		<!--{/loop}-->

			<div style="width:100%;text-align:right;"><div class="pages" ><!--{if $pagecount}--><!--{loop $pagecount $pageLinkText}-->{$pageLinkText}<!--{/loop}--><!--{/if}--></div></div>
		<!--{else}-->
		<div style="width:100%;text-align:center;font-size:12px;padding:40px 0px;">暂无内容!</div>
	<!--{/if}-->
	</form>
</div>
{template admin_bottom}
